package com.fowo.api.model.process.product.item;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/**
 * 加工单子表 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Getter
@Setter
public class ProcessProductItemImportPo {

  /** 所属加工单 */
  @ExcelProperty("所属加工单")
  @Size(max = 500, message = "所属加工单长度不能超过500")
  private String parentProcessProductRemarks;

  @ExcelIgnore
  @Schema(title = "所属加工单")
  private String parentProcessProduct;

  /** SKU */
  @ExcelProperty("SKU")
  @Size(max = 50, message = "SKU长度不能超过50")
  private String sku;

  /** 产品 */
  @ExcelProperty("*产品")
  @NotBlank(message = "产品不能为空")
  @Size(max = 500, message = "产品长度不能超过500")
  private String productIdName;

  @ExcelIgnore
  @Schema(title = "*产品")
  private String productId;

  /** 加工费 */
  @ExcelProperty("*加工费")
  @NotBlank(message = "加工费不能为空")
  @DecimalString(message = "加工费小数格式不正确", label = "加工费")
  private String processFee;

  /** 数量 */
  @ExcelProperty("*数量")
  @NotBlank(message = "数量不能为空")
  @LongString(message = "数量数值格式不正确", label = "数量")
  private String num;

  /** 小计 */
  @ExcelProperty("小计")
  @DecimalString(message = "小计小数格式不正确", label = "小计")
  private String subtotal;

  /** 店铺 */
  @ExcelProperty("店铺")
  @Size(max = 50, message = "店铺长度不能超过50")
  private String sidShopName;

  @ExcelIgnore
  @Schema(title = "店铺")
  private String sid;

  /** fnsku */
  @ExcelProperty("fnsku")
  @Size(max = 50, message = "fnsku长度不能超过50")
  private String fnskuFnsku;

  @ExcelIgnore
  @Schema(title = "fnsku")
  private String fnsku;

  /** 入库仓位 */
  @ExcelProperty("入库仓位")
  @Size(max = 50, message = "入库仓位长度不能超过50")
  private String whbCodeStorageBin;

  @ExcelIgnore
  @Schema(title = "入库仓位")
  private String whbCode;

  /** 数量 */
  @ExcelProperty("数量")
  @LongString(message = "数量数值格式不正确", label = "数量")
  private String whbNum;

  /** 备注 */
  @ExcelProperty("备注")
  @Size(max = 50, message = "备注长度不能超过50")
  private String remark;
}
